package com.tcs.start;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 重新改造
* @Title: StartUp.java
* @Package com.tcs.start
* @author 神经刀
* @date 2018年9月25日
* @version V1.0
 */
public class StartUp {
	
	private static final Logger logger = LoggerFactory.getLogger(StartUp.class);
	
	private static final Object lock = new Object();

	@SuppressWarnings("resource")
	public static void main(String[] args) {
		new ClassPathXmlApplicationContext("classpath:spring/kafkafile.xml").start();
		synchronized (lock) {
			try {
				lock.wait();
			} catch (InterruptedException e) {
				logger.error("" , e);
			}
		}
	}
}
